<div>
    <div class="modal-body" th:object="${teacher}">
        <input type="hidden" name="teacherId" th:value="*{teacherId}">
        <div class="form-group row">
            <label for="teacherNumber" class="col-form-label col-sm-3">教师工号:</label>
            <input type="text" class="form-control col-sm-8" id="teacherNumber" name="teacherNumber" th:value="*{teacherNumber}" placeholder="请输入教师工号" onkeyup="this.value=this.value.replace(/[^\0-9\.]/g,'');" required>
        </div>
        <div class="form-group row">
            <label for="teacherNumber" class="col-form-label col-sm-3">教师名称:</label>
            <input type="text" class="form-control col-sm-8" id="teacherName" name="teacherName"  th:value="*{teacherName}" placeholder="请输入教师姓名" required>
        </div>
        <div class="form-group row">
            <label for="departmentName" class="col-form-label col-sm-3">所属院部:</label>
            <input type="text" class="form-control col-sm-8" id="departmentName" name="departmentName"  th:value="*{departmentInfo}!=null?*{departmentInfo.departmentName}:''" placeholder="请输入院部名称" required>
        </div>

        <div class="form-group row">
            <label for="teacherPhone" class="col-form-label col-sm-3">手机号:</label>
            <input type="text" class="form-control col-sm-8" id="teacherPhone" name="teacherPhone" th:value="*{teacherPhone}" maxlength="11" placeholder="请输入手机号码" required>
        </div>
        <div class="form-group row" th:if="*{password}!=null">
            <label for="password" class="col-form-label col-sm-3">登陆密码:</label>
            <input type="password" class="form-control col-sm-8" id="password" name="password" th:value="*{password}" maxlength="32" required>
        </div>

    </div>
    <div class="modal-footer">
        <input class="btn btn-primary" type="submit" value="提交">
        <button type="button" class="btn btn-secondary" data-dismiss="modal" id="teacherDialogClose">Close</button>
    </div>
</div>


